package webEquipeRechercheGwt.client.handler.navigation;

import webEquipeRechercheGwt.client.factory.WidgetFactory;
import webEquipeRechercheGwt.client.structure.DataShowingPanel;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;

public class ClickHandlerAllPerson implements ClickHandler {

	private DataShowingPanel mainPanel;
	
	public ClickHandlerAllPerson(DataShowingPanel mainPanel) {
		this.mainPanel = mainPanel;
	}

	@Override
	public void onClick(ClickEvent event) {
		mainPanel.setCurrentPanel(WidgetFactory.getAllPersonPanel(mainPanel));
	}

}
